﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace App.DbContexts.Migrations
{
    public partial class AppTestDB005 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "_趋势",
                table: "Share",
                newName: "Trend");

            migrationBuilder.RenameColumn(
                name: "_建议",
                table: "Share",
                newName: "Suggest");

            migrationBuilder.RenameColumn(
                name: "_一周均价",
                table: "Share",
                newName: "_90dayPrice");

            migrationBuilder.RenameColumn(
                name: "_90天均价",
                table: "Share",
                newName: "_7dayPrice");

            migrationBuilder.RenameColumn(
                name: "_60天均价",
                table: "Share",
                newName: "_60dayPrice");

            migrationBuilder.RenameColumn(
                name: "_30天均价",
                table: "Share",
                newName: "_30dayPrice");

            migrationBuilder.RenameColumn(
                name: "_建议",
                table: "MyShare",
                newName: "Suggest");

            migrationBuilder.AddColumn<int>(
                name: "GroupId",
                table: "Share",
                type: "int",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GroupId",
                table: "Share");

            migrationBuilder.RenameColumn(
                name: "_90dayPrice",
                table: "Share",
                newName: "_一周均价");

            migrationBuilder.RenameColumn(
                name: "_7dayPrice",
                table: "Share",
                newName: "_90天均价");

            migrationBuilder.RenameColumn(
                name: "_60dayPrice",
                table: "Share",
                newName: "_60天均价");

            migrationBuilder.RenameColumn(
                name: "_30dayPrice",
                table: "Share",
                newName: "_30天均价");

            migrationBuilder.RenameColumn(
                name: "Trend",
                table: "Share",
                newName: "_趋势");

            migrationBuilder.RenameColumn(
                name: "Suggest",
                table: "Share",
                newName: "_建议");

            migrationBuilder.RenameColumn(
                name: "Suggest",
                table: "MyShare",
                newName: "_建议");
        }
    }
}
